import Vue from 'vue'
import Router from 'vue-router'
import shopList from "@/pages/shopList"
import login from '@/pages/login'
import myShopList from "@/pages/myShopList"
import GoodsDetails from "@/pages/GoodsDetails"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'shopList',
      component: shopList
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/myShopList',
      name: 'myShopList',
      component: myShopList
    },
    {
      path: '/GoodsDetails',
      name: 'GoodsDetails',
      component: GoodsDetails
    }

  ]
})
